package br.com.spam.pipeline.instruction.r;

import br.com.spam.pipeline.core.Processor;
import br.com.spam.pipeline.instruction.RTypeInstruction;

public class ADD extends RTypeInstruction
{

	public static final int ID = 0;
	public static final int FUNCT = 100000;
	public static final int ALUOpCode = 1;

	public ADD(String instruction, Processor processor)
	{
		super(instruction, processor);
	}

	@Override
	protected int operation(int rs, int rd)
	{
		return rs + rd;
	}

	@Override
	protected int getALUOp()
	{
		return ADD.ALUOpCode;
	}
}
